import request from '@/utils/request'

export default {
  getList(currentPage, pageSize, QueryBerthDTO) {
    return request({
      url: `/berth/list/search/${currentPage}/${pageSize}`,
      method: 'post',
      data: QueryBerthDTO
    })
  },
  delete(id) {
    return request({
      url: `/berth/${id}`,
      method: 'delete'
    })
  },
  saveOrUpdate(berth) {
    return request({
      url: `/berth`,
      method: 'post',
      data: berth
    })
  },
  getById(id) {
    return request({
      url: `/berth/${id}`,
      method: 'get'
    })
  }
}
